﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Nodes;
using System.Threading.Tasks;
using Volo.Abp;

namespace Himp.TaskScheduling.V1
{
    /// <summary>
    /// 
    /// </summary>
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/apiDataReport")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("apiDataReport")]
    public class ApiDataReportConvertController : TaskSchedulingController
    {
        [HttpGet]
        public async Task<ApiDataReportDto> GetAsync()
        {
            ApiDataReportDto apiDataReportDto = new ApiDataReportDto();
            apiDataReportDto.Data = new List<object>();

            分析样商品煤制样记录 data1 = new 分析样商品煤制样记录();
            data1.序号 = "1";
            data1.制样编号 = "1";
            data1.存查样总质量 = "1";
            data1.分析样容器质量 = "1";
            data1.分析样总质量 = "1";
            data1.设备名称 = "1";
            data1.制样人 = "1";
            data1.制样时间 = "1";
            apiDataReportDto.Data.Add(data1);
            apiDataReportDto.Total = 1;
            apiDataReportDto.Count = 1;

            return apiDataReportDto;
        }
    }

    public class ApiDataReportDto
    {
        public List<object> Data { get; set; }

        public int Total { get; set; }

        public int Count { get; set; }
    }

    public class 分析样商品煤制样记录
    {
        public string 序号 { get; set; }

        public string 制样编号 { get; set; }

        public string 存查样总质量 { get; set; }

        public string 分析样容器质量 { get; set; }

        public string 分析样总质量 { get; set; }

        public string 设备名称 { get; set; }

        public string 制样人 { get; set; }

        public string 制样时间 { get; set; }

    }
}
